for $art in collection("sortie-3214-regexp")//article for $elt in $art/element let $nextElt := $elt/following-sibling::element[1] let $nextnextElt := $elt/following-sibling::element[2] where $elt/data[1][contains(text(),"VER")] and $nextElt/data[1][contains(text(),"DET")] and $nextnextElt/data[1]="NOM" return concat($elt/data[3]/text()," ",$nextElt/data[3]/text()," ",$nextnextElt/data[3]/text()," ")